package com.mini.client;

import com.mini.vo.BusinessResult;
import com.mini.vo.WechatUserInfoVO;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author shixiaopeng  on 2020/12/25
 */
@FeignClient(name = "mini-wehub-socket-receiver")
public interface WehubSocketReceiverClient {

    @GetMapping(value = "/wehub/user/info/{teacherId}")
    @ApiOperation(value = "获取用户信息，是否是好友")
    BusinessResult<WechatUserInfoVO> infoUser(@ApiParam(value = "sig", required = true) @RequestHeader("sig") String sig,
                                              @ApiParam(value = "老师id") @PathVariable("teacherId") Long userId ,
                                              @ApiParam(value = "学员微信id") @RequestParam(value = "wxId") String wxId);

}
